/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package eulerframework;

public abstract class Problem {

    private MainFrame frame;

    public abstract long getAnswer();
    public abstract int getProblemNumber();

    public Problem(){
        frame = null;
    }

    public MainFrame getFrame(){
        if(frame == null){
            frame = new MainFrame(this);
            return frame;
        }else
            return frame;
    }

}
